import request from '@/utils/request'
export const getArticles = params => request.get('/interview/query', { params })
export const opt = params => request.get('/interview/opt', { params })
export const getArticleDetail = id => request.get('/interview/show', { params: { id } })
export const updateLike = id => request.post('/interview/opt', { id, optType: 1 })
export const updateCollect = id => request.post('/interview/opt', { id, optType: 2 })
export const getArticleLikeOrCollect = params => request.get('/interview/opt/list', { params })
